package com.devunion.bogdan.model.event;

import com.devunion.bogdan.model.project.Project;
import com.devunion.bogdan.model.project.Ontology;

/**
 * @author Viktar Liaskovich
 */
public class OntologyEvent extends BaseEvent<Project> {
    private Ontology ontology;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public OntologyEvent(Project source, Ontology ontology) {
        super(source);

        this.ontology = ontology;
    }

    public Ontology getOntology() {
        return ontology;
    }
}